function fun(a = 1, b = "B", ...arg) {
    console.log(arguments);
    console.log("fun()", a, b, arg);
}

fun(2, 3, 4, 5, 6);